x86/HVM: cache emulated instruction for retry processing
authorJan Beulich <jbeulich@suse.com>
Mon, 14 Oct 2013 07:54:09 +0000 (09:54 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 14 Oct 2013 07:54:09 +0000 (09:54 +0200)
commit699be3096ce62e2d6ef953b2a223c34330598ac8
tree63a39efbd838441f7f4be3684cdab67f9a2ddcb4
parent63b02eff535b8798517b5a280cc2fff2f7d415c1
x86/HVM: cache emulated instruction for retry processing

Rather than re-reading the instruction bytes upon retry processing,
stash away and re-use what we already read. That way we can be certain
that the retry won't do something different from what requested the
retry, getting once again closer to real hardware behavior (where what
we use retries for is simply a bus operation, not involving redundant
decoding of instructions).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/hvm/emulate.c
xen/include/asm-x86/hvm/vcpu.h